<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>

		<script language="javascript">
			function validation(frmLogin){
				if(frmLogin.adminName.value.length==0){
					alert("请填登录账号！");
					myform.adminName.focus();
					return false;
				}
				if(frmLogin.adminPassword.value.length==0){
					alert("请填写密码！");
					myform.adminPassword.focus();
					return false;
				}
				if(frmLogin.vercode.value.length==0){
					alert("请填写验证码！");
					myform.vercode.focus();
					return false;
				}
			}
		</script>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>后台管理登陆</title>
	</head>

	<body>
		<div align="center">
			<p>
				&nbsp;



			</p>
			<p>
				&nbsp;



			</p>
			<p>
				&nbsp;



			</p>
			<table width="400" height="150" border="0" cellpadding="0"
				cellspacing="0" class="tabAndTdAndTrInCommon">
				<tr>
					<s:form id="frmLogin" theme="simple" action="admin!login"
						onsubmit="return validation(this)">
						<td height="182" align="left" valign="top">
							<table width="100%" border="0" cellspacing="2" cellpadding="0">
								<tr>
									<td height="25" colspan="2" bgcolor="#3399FF">
										<div align="center">
											<font style="font-weight: bold; color: #FF0000">管理登录</font>
										</div>
									</td>
								</tr>
								<tr>
									<td height="23" colspan="2">
										&nbsp;
									</td>
								</tr>
								<tr>
									<td width="23%" height="32">
										<div align="right">
											登录账号&nbsp;&nbsp;
										</div>
									</td>
									<td width="77%">
										<s:textfield name="adminName" size="30" cssClass="txtAndTxtrAndPwdInCommon"></s:textfield>
									</td>
								</tr>
								<tr>
									<td height="27">
										<div align="right">
											登录密码&nbsp;&nbsp;
										</div>
									</td>
									<td>
										<s:password name="adminPassword" size="31" cssClass="txtAndTxtrAndPwdInCommon"></s:password>
									</td>
								</tr>
								<tr>
									<td height="27">
										<div align="right">
											验 &nbsp;证&nbsp; 码&nbsp;&nbsp;
										</div>
									</td>
									<td>
										<s:textfield name="vercode" size="10" cssClass="txtAndTxtrAndPwdInCommon"/>&nbsp;&nbsp;&nbsp;&nbsp;<img name="d" src="loginCheckImg"/>
									</td>
								</tr>
								<tr>
									<td height="55" colspan="2">
										<div align="center">
											<s:submit id="btnAdminLogin" value="登录" cssClass="btnInCommon"></s:submit>
										</div>
									</td>
								</tr>
								<tr>
									<td colspan="2">
										<font style="font-weight: bold; color: #FF0000"><s:actionerror />
										<s:actionmessage /></font>
									</td>
								</tr>
							</table>
						</td>
					</s:form>
				</tr>
			</table>
			<p>
				&nbsp;



			</p>
		</div>
	</body>
</html>
